﻿
using System; 
using System.Text;
using System.Collections.Generic; 
using System.Data;
using Kevin.Framework.Data.OrmMapping;
using Kevin.Framework.Validation;
/*------------------------------------------------------------------------
   苏州捷安信息科技有限公司 版权所有			
   文件名: TU_UserArea.cs
   作 者 : 席吉波
   日 期 : 2012-10-16
   备 注 : 当您对本文件更改时请写明修改人、修改日期以及事由
  ------------------------------------------------------------------------
*/
namespace JOIN.Rights.Model{
	 	//TU_UserArea
		[Serializable]
	[TableMapping("TU_UserArea")]
	public class UserAreaInfo : EntityBase
	{
		#region Constructor
		
		public UserAreaInfo()
			:this("")
		{}
		public UserAreaInfo(string connectionKey)
			:base(connectionKey)
		{}
		
		#endregion
   		
      			
		private string _userid;     
		/// <summary>
		/// UserID
        /// </summary>		
		[FieldMapping("UserID" )]		
		[NotNullValidator(MessageTemplate="不能为空")]
				public string UserID
        {
            get
            { 
            	return _userid; 
            }
            set
            { 
            	if(_userid != value)
            	{            	
            		base.OnPropertyChanged("UserID", _userid, value);
            		_userid = value; 
            	}
            }
        }        
				
		private string _areaid;     
		/// <summary>
		/// AreaID
        /// </summary>		
		[FieldMapping("AreaID" )]		
		[NotNullValidator(MessageTemplate="不能为空")]
				public string AreaID
        {
            get
            { 
            	return _areaid; 
            }
            set
            { 
            	if(_areaid != value)
            	{            	
            		base.OnPropertyChanged("AreaID", _areaid, value);
            		_areaid = value; 
            	}
            }
        }        
		   
	}
}